home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1273 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  39 lines

  1. Path: news.compuserve.com!newsmaster
  2. From: <75151.03563@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: RE: Allocate > 64k
  5. Date: 10 Jan 1996 07:36:13 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4cvq9d$7g9@dub-news-svc-3.compuserve.com>
  8. NNTP-Posting-Host: dd74-136.compuserve.com
  9. Content-Type: text/plain
  10. Content-length: 812
  11. X-Newsreader: AIR Mosaic (16-bit) version 1.00.198.07
  12.  
  13.  
  14.  jsmithjr@ix.netcom.com(James E. Smith, Jr. ) writes:
  15. >Have Borlandc. Can I allocate arrays larger than 64K? I have to use 16
  16. >bit compiler to deliver product for Air Force systems. Or, do I have to
  17. >build memory manger to handle multiple segments? 
  18.  
  19. I haven't used BC in a while, but in Microsoft this is what you do - I'm sure
  20. BC has something comparable.
  21.  
  22. 1) use the _huge modifier for your pointers.
  23.  
  24. char * _huge hugePtr;
  25.  
  26. 2) Use halloc( ... )
  27.  
  28.  
  29. hugePtr= (char * _huge)halloc( ... );
  30.  
  31. I'm not if these are the exact names of the function and modifier, but hopefully it
  32. will get you looking in the right direction.  Also - check the documentation - I'm 
  33. not sure, but you might have to compile in huge model to get this to work.
  34.  
  35. Hope this helps.
  36. Tom Keane
  37. 75151,03563@compuserve.com
  38.  
  39.